package com.zlx.mall.basic.datasource.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * @author qingke
 **/
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ModifyBatchBaseRequest extends PrimaryKeyBatchBaseRequest
        implements java.io.Serializable {
    private Integer status;
    private Integer sort;
    private Boolean deleted;

    public boolean isStatus() {
        return Objects.nonNull(status);
    }

    public boolean isSort() {
        return Objects.nonNull(sort);
    }

    public boolean isDelete() {
        return Boolean.TRUE.equals(deleted);
    }
}
